package com.cskaoyan.service;

import com.cskaoyan.bean.Coupon;
import com.cskaoyan.bean.CouponUser;
import com.cskaoyan.bean.vo.AdminAdForListDataBean;

public interface AdminCouponService {
    AdminAdForListDataBean<Coupon> queryCoupon(Integer page, Integer limit, String name, String sort, String order, Short type, Short status);

    Coupon queryCouponById(Integer id);

    AdminAdForListDataBean<CouponUser> queryCouponUsers(Integer page, Integer limit, Integer couponId, Integer userId, Short status, String sort, String order);

    Integer AddCoupon(Coupon coupon);

    Integer deleteCoupon(Coupon coupon);

    Integer updateCoupon(Coupon coupon);
}
